<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>扩展运算符应用</title>
</head>
<body>
    <div></div>
    <div></div>
    <div></div>
    <script>
        //1. 数组的合并 
        let fh = ['曾毅','玲花'];
        let kz = ['肖央','王太利'];
        // let zxxpg = [...fh, ...kz];
        // console.log(zxxpg);

        //2. 新数组克隆
        let arr = ['E','G','M'];
        let res = [...arr];  
        // console.log(res);

        //3. 将伪数组转为真正的数组
        let divs = document.querySelectorAll('div');
        //将divs转为一个真正的数组
        let DIVS = [...divs];

        //map 是数组对象中的一个方法, 可以对数组元素进行操作, 返回一个新的数组
        DIVS.map(item => {

        });        
    </script>
</body>
</html>